<* include file=$header_file *>
<script type="text/JavaScript">
	if(parent.$('admincpnav')) parent.$('admincpnav').innerHTML='配置&nbsp;&raquo;&nbsp;店面管理';if(parent.$('add2custom')) parent.$('add2custom').innerHTML='';
</script>
<div class="itemtitle">
  <h3>配置&nbsp;&raquo;&nbsp;店面管理
    <input  type="button" value="  刷新当前页 " class="btn" onClick="window.location.reload()"/>&nbsp;<input  type="button" value="  新增 " class="btn" onClick="window.location.href='/<* $controller *>/shopadd'"/>
  </h3>
</div>
<div id="main_content"> <* $page *>
 <table class="tb tb2 ">
    <tr>
      <th class="partition">ID</th>
      <th class="partition">店名</th>
      <th class="partition">负责人</th>
      <th class="partition">城市</th>
      <th class="partition">联系电话</th>
      <th class="partition">联系手机</th>
      <th class="partition">状态</th>
      <th class="partition">-</th>
    </tr>
    <* foreach from=$result item=item key=key *>
    <tr >
      <td ><* $item.shopid *></td>
      <td ><* $item.shop_name *></td>
      <td ><* $item.shop_master  *></td>
      <td ><* $item.shop_city  *></td>
      <td ><* $item.shop_phone  *></td>
      <td ><* $item.shop_mobile *></td>
      <td ><* $item.disabled *></td>
      <td ><a href="javascript:edit(<*$item.shopid*>)">修改</a> | <a href="javascript:deleteit(<*$item.shopid*>)">删除</a></td>
    </tr>
    <* /foreach*>
  </table>
  <* $page *> </div>
<script type="text/javascript">

function edit(shopid)
{
   window.location='/<*$controller*>/shopedit/shopid/'+shopid;
}

function deleteit(shopid)
{
  if(confirm("删除将不能恢复，确认要删除?")){
   window.location='/<*$controller*>/shopdelete/shopid/'+shopid;
  }
}

</script>
<* include file=$bottom_file *>